import http from 'utilMethods/http'

const host = 'http://wsn2019.club:8085'

const chat = {
  //获取群聊历史聊天记录
  getGroupHistoryLogs(groupId) {
    return http.get(`${host}/messageGroupLogs/${groupId}`)
  },
  //获取私聊历史聊天记录
  getPersonalHistoryLogs(sender,receiver) {
    return http.get(`${host}/messageLogs/${sender}/${receiver}`)
  },
}

export default chat
